<template>
  <pro-iframe :srcdoc="htmlValue" v-bind="$attrs" />
</template>
<script lang="ts" setup name="ProWangHtml">
const props = defineProps({
  html: String
})

const htmlValue = computed(() => {
  return props.html
    ? `<head><link rel="stylesheet" type="text/css"  href="/resource/wang/wang-html.css"></head>
  <body>${props.html}</body> `
    : ''
})
</script>
